﻿@{
    ViewBag.Title = "SelectTime";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}
@section head{
    <script type="text/javascript">
        function GotoListLog(day) {
            location.href = '/Log/ListLog?day=' + day;
        }
        function button1click() {
            GotoListLog(7);
        }
        function button2click() {
            GotoListLog(30);
        }
        function button3click() {
            GotoListLog(4 * 30);
        }
        function button4click() {
            GotoListLog(6 * 30);
        }
        function button5click() {
            GotoListLog(365);
        }
        function button6click() {
            GotoListLog(2 * 365);
        }
    </script>
}
<h3 style="color: white">Filter criteria</h3>
<table style="width: 100%; height: 100%">
    <tr>
        <td style="width: 20%; height: 100%; vertical-align: top">
            <ul style="margin-top: -17px">
                <li>
                    <input type="button" class="buttonleft" value="1 Week ago" onclick="return button1click();" />
                </li>
                <li>
                    <input type="button" class="buttonleft" value="1 Month ago" onclick="return button2click();" />
                </li>
                <li>
                    <input type="button" class="buttonleft" value="4 Months ago" onclick="return button3click();" />
                </li>
            </ul>
        </td>
        <td style="text-align: center; color: white;">
            Choose time cirteria to view transaction history
        </td>
        <td style="text-align: right; width: 20%; vertical-align: top">
            <ul style="margin-top: -17px">
                <li>
                    <input type="button" class="buttonright" value="6 Months ago" onclick="return button4click();" />
                </li>
                <li>
                    <input type="button" class="buttonright" value="1 Year ago" onclick="return button5click();" />
                </li>
                <li>
                    <input type="button" class="buttonright" value="2 Year ago" onclick="return button6click();" />
                </li>
            </ul>
        </td>
    </tr>

</table>